import { useLocation } from "react-router";
function StateView(){

  const {state}=  useLocation();
  console.log("state",state);
  
    return (
        <div>
            <div>State传参</div>
        </div>
    )
}
export default StateView;